﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="../js/jquery-1.8.2.js"></script>
  </head>
  <body>
  
	<div>
		哈哈	
	</div>
	
	<select id="city">
		<option value="地都">北京</option>
	</select>
	
	<script type="text/javascript">
	
		//取得<div>中的内容
		//alert( $("div").text() );
		
		//取得<option>的值和描述
		var $option = $("#city option");
		var value = $option.val();
		var html = $option.text();
		alert(value + ":" + html);
		
	</script>
  
  </body>
</html>



